package com.ivy.wechatforclient.entity;

/**
 * Created by Lenovo on 2017/12/6.
 */

public class Message {
    public static final int TYPE_RECEIVE = 0;
    public static final int TYPE_SEND = 1;
    private int id;
    private String sender;
    private String receiver;
    private String content;
    private int type;
    private String time;
    public  Message() { }

    public  Message(String content , int  type) {
        this.content = content;
        this.type = type;
    }

    public  Message(String sender,String receiver,String content , int  type ) {
        this.sender = sender;
        this.receiver = receiver;
        this.content = content;
        this.type = type;
    }

    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getSender() {
        return sender;
    }
    public void setSender(String sender) {
        this.sender = sender;
    }
    public String getReceiver() {
        return receiver;
    }
    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }
    public String getContent() {
        return content;
    }
    public void setContent(String content) {
        this.content = content;
    }
    public int getType() {
        return type;
    }
    public void setType(int type) {
        this.type = type;
    }
    public String getTime() {
        return time;
    }
    public void setTime(String time) {
        this.time = time;
    }
}
